<?php

return [
    //整数
    'num'       => '^-?(0|[1-9]\d*)$',
    '>0num'     => '^[1-9]\d*$',
    '>=0num'    => '^(0|[1-9]\d*)$',
    //浮点数
    'float2'    => '^-?(0|[1-9]\d*)(.\d{1,2})?$',
    '>0float2'  => '^(0.\d{1,2}|[1-9]\d*(.\d{1,2})?)$',
    '>=0float2' => '^(0|[1-9]\d*)(.\d{1,2})?$',
    //手机号
    'mobile'    => '^1\d{10}$',
    //身份证号
    'idcard15'  => '^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$',
    'idcard18'  => '^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$',
];
